package model;

import entities.GuestUser;
import entities.Room;
import java.util.Date;
import javax.enterprise.context.ApplicationScoped;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author Anton Karlsson
 */
@ManagedBean(name = "myPageBackingBean")
@ApplicationScoped
public class MyPageBackingBean {

    protected Long id;
    protected Date bookDate;
    protected Date startDate;
    protected Date endDate;
    protected Room room;
    protected GuestUser user;

    public MyPageBackingBean(Date bookDate, Date startDate, Date endDate, Room room, GuestUser user) {
        this.bookDate = bookDate;
        this.startDate = startDate;
        this.endDate = endDate;
        this.room = room;
        this.user = user;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getBookDate() {
        return bookDate;
    }

    public void setBookDate(Date bookDate) {
        this.bookDate = bookDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public GuestUser getUser() {
        return user;
    }

    public void setUser(GuestUser user) {
        this.user = user;
    }
}
